home *** CD-ROM | disk | FTP | other *** search
AmigaOS Executable | 1998-06-22 | 9.5 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: AmigaOS Executable
(executable/amigaExe).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| AmigaOS Executable (executable/amigaExe)
| magic
| Unsupported |
100%
| file
| AmigaOS loadseg()ble executable/binary
| default
| |
99%
| file
| data
| default
| |
57%
| TrID
| Amiga Hunk executable
| default
| |
42%
| TrID
| Matlab Level 4 MAT-File (big-endian)
| default (weak)
| |
100%
| detectItEasy
| Format: Amiga loadable file
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 03 f3 00 00 00 00 | 00 00 00 02 00 00 00 00 |........|........|
|00000010| 00 00 00 01 00 00 00 6f | 00 00 08 f3 00 00 03 e9 |.......o|........|
|00000020| 00 00 00 6f 48 e7 3f 3e | 24 00 26 48 28 4f 20 02 |...oH.?>|$.&H(O .|
|00000030| 5e 40 02 80 ff ff ff fe | 9f c0 24 4f 22 4a 20 0b |^@......|..$O"J .|
|00000040| 67 20 70 20 72 09 74 0a | 16 1b 67 16 b6 02 67 12 |g p r.t.|..g...g.|
|00000050| b6 00 67 f4 b6 01 67 f0 | 12 c3 16 1b 67 04 b6 02 |..g...g.|....g...|
|00000060| 66 f6 42 11 b5 c9 67 08 | b0 21 67 f6 b2 11 67 f2 |f.B...g.|.!g...g.|
|00000070| 7e 14 2c 78 00 04 61 00 | 00 de 4a 80 67 00 00 aa |~.,x..a.|..J.g...|
|00000080| 2a 40 43 f9 00 00 01 1a | 4e ae fe 7a 4a 80 67 00 |*@C.....|N..zJ.g.|
|00000090| 00 92 43 f9 00 00 01 1f | 70 00 4e ae fd d8 4a 80 |..C.....|p.N...J.|
|000000a0| 67 00 00 80 2c 00 cd 8e | 20 4d 93 c9 70 00 4e ae |g...,...| M..p.N.|
|000000b0| ff 70 67 68 26 48 27 7c | 00 00 00 00 00 28 27 4a |.pgh&H'||.....('J|
|000000c0| 00 2c 70 02 72 00 4e ae | ff 5e 67 46 cd 8e 27 7c |.,p.r.N.|.^gF..'||
|000000d0| 02 04 00 01 00 1c 4e ae | ff 7c 43 f9 00 00 01 1a |......N.|.|C.....|
|000000e0| 4e ae fe 7a 2a 00 67 08 | 20 40 22 4b 4e ae fe 92 |N..z*.g.| @"KN...|
|000000f0| 4e ae ff 76 4a 85 67 0e | 20 4d 4e ae fe 80 20 4d |N..vJ.g.| MN... M|
|00000100| 4e ae fe 8c 7e 00 cd 8e | 20 4b 70 02 4e ae ff 64 |N...~...| Kp.N..d|
|00000110| cd 8e cd 8e 20 4b 4e ae | ff 6a cd 8e 22 46 4e ae |.... KN.|.j.."FN.|
|00000120| fe 62 20 4d 61 00 00 8c | 20 07 2e 4c 4c df 7c fc |.b Ma...| ..LL.|.|
|00000130| 4e 75 00 00 00 00 00 00 | 00 00 00 00 00 00 52 45 |Nu......|......RE|
|00000140| 58 58 00 72 65 78 78 73 | 79 73 6c 69 62 2e 6c 69 |XX.rexxs|yslib.li|
|00000150| 62 72 61 72 79 00 48 e7 | 20 22 2c 78 00 04 70 ff |brary.H.| ",x..p.|
|00000160| 4e ae fe b6 74 ff b4 00 | 67 40 24 00 70 22 22 3c |N...t...|g@$.p""<|
|00000170| 00 01 00 01 4e ae ff 3a | 4a 80 67 28 24 40 15 7c |....N..:|J.g($@.||
|00000180| 00 04 00 08 15 42 00 0f | 93 c9 4e ae fe da 25 40 |.....B..|..N...%@|
|00000190| 00 10 41 ea 00 14 25 48 | 00 1c 43 ea 00 18 20 89 |..A...%H|..C... .|
|000001a0| 20 0a 60 08 20 02 4e ae | fe b0 70 00 4c df 44 04 | .`. .N.|..p.L.D.|
|000001b0| 4e 75 48 e7 00 22 24 48 | 2c 78 00 04 70 ff 15 40 |NuH.."$H|,x..p..@|
|000001c0| 00 08 25 40 00 14 70 00 | 10 2a 00 0f 4e ae fe b0 |..%@..p.|.*..N...|
|000001d0| 22 4a 70 22 4e ae ff 2e | 4c df 44 00 4e 75 00 00 |"Jp"N...|L.D.Nu..|
|000001e0| 00 00 03 ec 00 00 00 03 | 00 00 00 00 00 00 00 60 |........|.......`|
|000001f0| 00 00 00 70 00 00 00 b8 | 00 00 00 01 00 00 00 01 |...p....|........|
|00000200| 00 00 00 94 00 00 00 00 | 00 00 03 f2 00 00 03 ea |........|........|
|00000210| 00 00 08 f3 2f 2a 0a 24 | 56 45 52 3a 20 4d 4d 5f |..../*.$|VER: MM_|
|00000220| 53 70 65 63 74 72 65 20 | 20 31 2e 30 20 20 28 32 |Spectre | 1.0 (2|
|00000230| 32 2f 36 2f 39 38 29 0a | 2a 2f 0a 2f 2a 20 43 6f |2/6/98).|*/./* Co|
|00000240| 6d 70 72 65 73 73 65 64 | 20 77 69 74 68 20 43 6f |mpressed| with Co|
|00000250| 6d 70 72 65 73 73 52 65 | 78 78 20 76 33 2e 30 20 |mpressRe|xx v3.0 |
|00000260| 28 43 4d 50 4d 4f 44 45 | 20 4e 4f 52 4d 41 4c 29 |(CMPMODE| NORMAL)|
|00000270| 2c 20 28 43 29 20 31 39 | 39 33 2d 39 36 20 52 6f |, (C) 19|93-96 Ro|
|00000280| 62 65 72 74 20 48 6f 66 | 6d 61 6e 6e 20 2a 2f 0a |bert Hof|mann */.|
|00000290| 70 61 72 73 65 20 61 72 | 67 20 61 72 67 73 3b 6f |parse ar|g args;o|
|000002a0| 70 74 69 6f 6e 73 20 63 | 61 63 68 65 3b 6f 70 74 |ptions c|ache;opt|
|000002b0| 69 6f 6e 73 20 66 61 69 | 6c 61 74 20 39 39 3b 6f |ions fai|lat 99;o|
|000002c0| 70 74 69 6f 6e 73 20 72 | 65 73 75 6c 74 73 3b 73 |ptions r|esults;s|
|000002d0| 69 67 6e 61 6c 20 6f 6e | 20 62 72 65 61 6b 5f 63 |ignal on| break_c|
|000002e0| 3b 73 69 67 6e 61 6c 20 | 6f 6e 20 62 72 65 61 6b |;signal |on break|
|000002f0| 5f 64 3b 73 69 67 6e 61 | 6c 20 6f 6e 20 62 72 65 |_d;signa|l on bre|
|00000300| 61 6b 5f 65 3b 73 69 67 | 6e 61 6c 20 6f 6e 20 62 |ak_e;sig|nal on b|
|00000310| 72 65 61 6b 5f 66 3b 73 | 69 67 6e 61 6c 20 6f 6e |reak_f;s|ignal on|
|00000320| 20 68 61 6c 74 3b 73 69 | 67 6e 61 6c 20 6f 6e 20 | halt;si|gnal on |
|00000330| 69 6f 65 72 72 3b 73 69 | 67 6e 61 6c 20 6f 6e 20 |ioerr;si|gnal on |
|00000340| 73 79 6e 74 61 78 3b 61 | 64 64 72 65 73 73 20 27 |syntax;a|ddress '|
|00000350| 4d 41 49 4c 4d 41 4e 41 | 47 45 52 27 3b 4d 61 69 |MAILMANA|GER';Mai|
|00000360| 6e 3a 3b 63 61 6c 6c 20 | 49 6e 69 74 3b 63 61 6c |n:;call |Init;cal|
|00000370| 6c 20 48 65 61 64 65 72 | 3b 63 61 6c 6c 20 52 65 |l Header|;call Re|
|00000380| 61 64 5f 43 66 67 3b 63 | 61 6c 6c 20 57 61 69 74 |ad_Cfg;c|all Wait|
|00000390| 5f 41 72 65 61 73 57 69 | 6e 64 6f 77 3b 63 61 6c |_AreasWi|ndow;cal|
|000003a0| 6c 20 50 61 72 73 65 3b | 63 61 6c 6c 20 51 75 69 |l Parse;|call Qui|
|000003b0| 74 28 30 2c 20 27 41 6c | 6c 20 64 6f 6e 65 2e 27 |t(0, 'Al|l done.'|
|000003c0| 29 3b 65 78 69 74 3b 62 | 72 65 61 6b 5f 63 3a 3b |);exit;b|reak_c:;|
|000003d0| 62 72 65 61 6b 5f 64 3a | 3b 62 72 65 61 6b 5f 65 |break_d:|;break_e|
|000003e0| 3a 3b 62 72 65 61 6b 5f | 66 3a 3b 68 61 6c 74 3a |:;break_|f:;halt:|
|000003f0| 3b 73 69 67 6e 61 6c 20 | 6f 66 66 20 62 72 65 61 |;signal |off brea|
|00000400| 6b 5f 63 3b 73 69 67 6e | 61 6c 20 6f 66 66 20 62 |k_c;sign|al off b|
|00000410| 72 65 61 6b 5f 64 3b 73 | 69 67 6e 61 6c 20 6f 66 |reak_d;s|ignal of|
|00000420| 66 20 62 72 65 61 6b 5f | 65 3b 73 69 67 6e 61 6c |f break_|e;signal|
|00000430| 20 6f 66 66 20 62 72 65 | 61 6b 5f 66 3b 73 69 67 | off bre|ak_f;sig|
|00000440| 6e 61 6c 20 6f 66 66 20 | 68 61 6c 74 3b 72 65 74 |nal off |halt;ret|
|00000450| 75 72 6e 5f 63 6f 64 65 | 20 3d 20 35 3b 65 72 72 |urn_code| = 5;err|
|00000460| 6f 72 5f 6c 69 6e 65 20 | 3d 20 30 3b 65 72 72 6f |or_line |= 0;erro|
|00000470| 72 5f 6d 73 67 20 3d 20 | 27 45 78 65 63 75 74 69 |r_msg = |'Executi|
|00000480| 6f 6e 20 68 61 6c 74 65 | 64 21 21 21 27 3b 72 63 |on halte|d!!!';rc|
|00000490| 20 3d 20 30 3b 73 69 67 | 6e 61 6c 20 45 78 69 74 | = 0;sig|nal Exit|
|000004a0| 3b 45 78 69 74 3a 3b 73 | 65 6c 65 63 74 3b 77 68 |;Exit:;s|elect;wh|
|000004b0| 65 6e 20 72 65 74 75 72 | 6e 5f 63 6f 64 65 3e 3d |en retur|n_code>=|
|000004c0| 34 30 20 74 68 65 6e 20 | 65 72 72 6f 72 20 3d 20 |40 then |error = |
|000004d0| 27 49 4e 54 45 52 4e 41 | 4c 2d 45 52 52 4f 52 3a |'INTERNA|L-ERROR:|
|000004e0| 27 3b 77 68 65 6e 20 72 | 65 74 75 72 6e 5f 63 6f |';when r|eturn_co|
|000004f0| 64 65 3e 3d 33 30 20 74 | 68 65 6e 20 65 72 72 6f |de>=30 t|hen erro|
|00000500| 72 20 3d 20 27 49 4f 2d | 45 52 52 4f 52 3a 27 3b |r = 'IO-|ERROR:';|
|00000510| 77 68 65 6e 20 72 65 74 | 75 72 6e 5f 63 6f 64 65 |when ret|urn_code|
|00000520| 3e 3d 32 30 20 74 68 65 | 6e 20 65 72 72 6f 72 20 |>=20 the|n error |
|00000530| 3d 20 27 45 52 52 4f 52 | 3a 27 3b 77 68 65 6e 20 |= 'ERROR|:';when |
|00000540| 72 65 74 75 72 6e 5f 63 | 6f 64 65 3e 3d 31 30 20 |return_c|ode>=10 |
|00000550| 74 68 65 6e 20 65 72 72 | 6f 72 20 3d 20 27 57 41 |then err|or = 'WA|
|00000560| 52 4e 49 4e 47 3a 27 3b | 77 68 65 6e 20 72 65 74 |RNING:';|when ret|
|00000570| 75 72 6e 5f 63 6f 64 65 | 3e 3d 35 20 74 68 65 6e |urn_code|>=5 then|
|00000580| 20 65 72 72 6f 72 20 3d | 20 27 49 4e 46 4f 3a 27 | error =| 'INFO:'|
|00000590| 3b 6f 74 68 65 72 77 69 | 73 65 20 65 72 72 6f 72 |;otherwi|se error|
|000005a0| 20 3d 20 27 27 3b 65 6e | 64 3b 63 61 6c 6c 20 4c | = '';en|d;call L|
|000005b0| 6f 67 28 29 3b 63 61 6c | 6c 20 4c 6f 67 28 27 2a |og();cal|l Log('*|
|000005c0| 2a 2a 27 20 73 74 72 69 | 70 28 65 72 72 6f 72 20 |**' stri|p(error |
|000005d0| 65 72 72 6f 72 5f 6d 73 | 67 29 20 27 2a 2a 2a 27 |error_ms|g) '***'|
|000005e0| 2c 20 27 2b 27 29 3b 63 | 61 6c 6c 20 4c 6f 67 28 |, '+');c|all Log(|
|000005f0| 2c 27 5c 27 29 3b 63 61 | 6c 6c 20 73 65 74 63 6c |,'\');ca|ll setcl|
|00000600| 69 70 28 27 4d 4d 5f 4c | 6f 67 50 72 65 27 2c 20 |ip('MM_L|ogPre', |
|00000610| 73 79 73 74 65 6d 2e 6d | 6d 2e 6c 6f 67 70 72 65 |system.m|m.logpre|
|00000620| 29 3b 65 78 69 74 20 72 | 65 74 75 72 6e 5f 63 6f |);exit r|eturn_co|
|00000630| 64 65 3b 57 61 69 74 5f | 41 72 65 61 73 57 69 6e |de;Wait_|AreasWin|
|00000640| 64 6f 77 3a 20 70 72 6f | 63 65 64 75 72 65 20 45 |dow: pro|cedure E|
|00000650| 78 70 6f 73 65 20 73 79 | 73 74 65 6d 2e 3b 4d 4d |xpose sy|stem.;MM|
|00000660| 5f 41 72 65 61 73 57 69 | 6e 3b 69 66 20 72 63 3d |_AreasWi|n;if rc=|
|00000670| 30 20 74 68 65 6e 20 72 | 65 74 75 72 6e 3b 62 65 |0 then r|eturn;be|
|00000680| 6c 6c 20 3d 20 27 30 37 | 27 78 3b 63 72 20 3d 20 |ll = '07|'x;cr = |
|00000690| 27 30 44 27 78 3b 69 66 | 20 52 65 71 75 65 73 74 |'0D'x;if| Request|
|000006a0| 5f 43 68 6f 69 63 65 28 | 27 5c 63 5c 6e 5c 31 27 |_Choice(|'\c\n\1'|
|000006b0| 73 79 73 74 65 6d 2e 70 | 72 67 2e 69 64 27 5c 30 |system.p|rg.id'\0|
|000006c0| 20 69 73 20 77 61 69 74 | 69 6e 67 2e 5c 6e 5c 6e | is wait|ing.\n\n|
|000006d0| 50 6c 65 61 73 65 20 67 | 6f 20 62 61 63 6b 20 74 |Please g|o back t|
|000006e0| 6f 20 74 68 65 20 41 72 | 65 61 73 2d 57 69 6e 64 |o the Ar|eas-Wind|
|000006f0| 6f 77 20 61 73 20 73 6f | 6f 6e 20 61 73 20 70 6f |ow as so|on as po|
|00000700| 73 73 69 62 6c 65 21 5c | 6e 27 2c 20 27 2a 20 5f |ssible!\|n', '* _|
|00000710| 57 41 49 54 20 7c 20 5f | 51 55 49 54 20 27 2c 20 |WAIT | _|QUIT ', |
|00000720| 27 30 20 31 27 29 20 74 | 68 65 6e 20 63 61 6c 6c |'0 1') t|hen call|
|00000730| 20 51 75 69 74 28 35 2c | 20 27 41 62 6f 72 74 65 | Quit(5,| 'Aborte|
|00000740| 64 20 62 79 20 75 73 65 | 72 2e 27 29 3b 74 6d 70 |d by use|r.');tmp|
|00000750| 20 3d 20 27 57 61 69 74 | 69 6e 67 20 66 6f 72 20 | = 'Wait|ing for |
|00000760| 41 72 65 61 73 2d 57 69 | 6e 64 6f 77 2e 2e 2e 27 |Areas-Wi|ndow...'|
|00000770| 3b 63 61 6c 6c 20 77 72 | 69 74 65 63 68 28 53 54 |;call wr|itech(ST|
|00000780| 44 4f 55 54 2c 20 62 65 | 6c 6c 20 7c 7c 20 74 6d |DOUT, be|ll || tm|
|00000790| 70 20 7c 7c 20 63 72 29 | 3b 63 61 6c 6c 20 4c 6f |p || cr)|;call Lo|
|000007a0| 67 28 74 6d 70 2c 2c 20 | 34 29 3b 72 63 20 3d 20 |g(tmp,, |4);rc = |
|000007b0| 31 3b 64 6f 20 77 68 69 | 6c 65 20 72 63 7e 3d 30 |1;do whi|le rc~=0|
|000007c0| 3b 4d 4d 5f 41 72 65 61 | 73 57 69 6e 3b 63 61 6c |;MM_Area|sWin;cal|
|000007d0| 6c 20 77 72 69 74 65 63 | 68 28 53 54 44 4f 55 54 |l writec|h(STDOUT|
|000007e0| 2c 20 62 65 6c 6c 29 3b | 63 61 6c 6c 20 44 65 6c |, bell);|call Del|
|000007f0| 61 79 28 32 35 30 29 3b | 65 6e 64 3b 72 65 74 75 |ay(250);|end;retu|
|00000800| 72 6e 3b 52 65 71 75 65 | 73 74 5f 43 68 6f 69 63 |rn;Reque|st_Choic|
|00000810| 65 3a 20 70 72 6f 63 65 | 64 75 72 65 20 45 78 70 |e: proce|dure Exp|
|00000820| 6f 73 65 20 73 79 73 74 | 65 6d 2e 3b 70 61 72 73 |ose syst|em.;pars|
|00000830| 65 20 61 72 67 20 74 65 | 78 74 2c 20 62 75 74 74 |e arg te|xt, butt|
|00000840| 6f 6e 73 2c 20 72 65 74 | 5f 76 61 6c 73 3b 74 69 |ons, ret|_vals;ti|
|00000850| 74 6c 65 20 3d 20 73 79 | 73 74 65 6d 2e 70 72 67 |tle = sy|stem.prg|
|00000860| 2e 6e 61 6d 65 27 2d 52 | 65 71 75 65 73 74 65 72 |.name'-R|equester|
|00000870| 27 3b 74 65 78 74 20 3d | 20 74 72 61 6e 73 6c 61 |';text =| transla|
|00000880| 74 65 28 52 65 70 6c 61 | 63 65 28 74 65 78 74 2c |te(Repla|ce(text,|
|00000890| 20 27 30 41 27 78 2c 20 | 27 5c 6e 27 29 2c 20 27 | '0A'x, |'\n'), '|
|000008a0| 31 62 27 78 2c 20 27 5c | 27 29 3b 69 66 20 6c 65 |1b'x, '\|');if le|
|000008b0| 6e 67 74 68 28 74 65 78 | 74 29 3c 34 30 20 74 68 |ngth(tex|t)<40 th|
|000008c0| 65 6e 20 74 65 78 74 20 | 3d 20 63 65 6e 74 65 72 |en text |= center|
|000008d0| 28 74 65 78 74 2c 20 34 | 30 29 3b 4d 4d 5f 52 65 |(text, 4|0);MM_Re|
|000008e0| 71 75 65 73 74 65 72 20 | 74 69 74 6c 65 20 27 74 |quester |title 't|
|000008f0| 65 78 74 27 20 27 62 75 | 74 74 6f 6e 73 27 3b 69 |ext' 'bu|ttons';i|
|00000900| 66 20 72 63 3d 30 20 74 | 68 65 6e 20 72 63 3d 77 |f rc=0 t|hen rc=w|
|00000910| 6f 72 64 73 28 72 65 74 | 5f 76 61 6c 73 29 3b 72 |ords(ret|_vals);r|
|00000920| 65 74 75 72 6e 20 63 6f | 6d 70 72 65 73 73 28 77 |eturn co|mpress(w|
|00000930| 6f 72 64 28 72 65 74 5f | 76 61 6c 73 2c 20 72 63 |ord(ret_|vals, rc|
|00000940| 29 2c 20 27 5f 27 29 3b | 47 65 74 5f 41 72 67 3a |), '_');|Get_Arg:|
|00000950| 20 70 72 6f 63 65 64 75 | 72 65 20 45 78 70 6f 73 | procedu|re Expos|
|00000960| 65 20 61 72 67 73 20 73 | 79 73 74 65 6d 2e 3b 61 |e args s|ystem.;a|
|00000970| 72 67 20 6b 65 79 77 6f | 72 64 2c 20 6d 6f 64 65 |rg keywo|rd, mode|
|00000980| 2c 20 6f 6c 64 3b 75 61 | 72 67 73 20 3d 20 75 70 |, old;ua|rgs = up|
|00000990| 70 65 72 28 61 72 67 73 | 29 3b 70 20 3d 20 66 69 |per(args|);p = fi|
|000009a0| 6e 64 28 75 61 72 67 73 | 2c 20 6b 65 79 77 6f 72 |nd(uargs|, keywor|
|000009b0| 64 29 3b 69 66 20 70 3d | 30 20 74 68 65 6e 20 64 |d);if p=|0 then d|
|000009c0| 6f 3b 70 20 3d 20 70 6f | 73 28 27 20 27 6b 65 79 |o;p = po|s(' 'key|
|000009d0| 77 6f 72 64 27 3d 27 2c | 20 27 20 27 75 61 72 67 |word'=',| ' 'uarg|
|000009e0| 73 29 3b 69 66 20 70 3e | 30 20 74 68 65 6e 20 61 |s);if p>|0 then a|
|000009f0| 72 67 73 20 3d 20 6f 76 | 65 72 6c 61 79 28 27 20 |rgs = ov|erlay(' |
|00000a00| 27 2c 20 61 72 67 73 2c | 20 70 2b 6c 65 6e 67 74 |', args,| p+lengt|
|00000a10| 68 28 6b 65 79 77 6f 72 | 64 29 29 3b 70 20 3d 20 |h(keywor|d));p = |
|00000a20| 66 69 6e 64 28 75 70 70 | 65 72 28 61 72 67 73 29 |find(upp|er(args)|
|00000a30| 2c 20 6b 65 79 77 6f 72 | 64 29 3b 65 6e 64 3b 73 |, keywor|d);end;s|
|00000a40| 79 73 74 65 6d 2e 63 6d | 64 6f 70 74 2e 6b 65 79 |ystem.cm|dopt.key|
|00000a50| 77 6f 72 64 20 3d 20 70 | 3e 30 3b 73 65 6c 65 63 |word = p|>0;selec|
|00000a60| 74 3b 77 68 65 6e 20 6d | 6f 64 65 3d 30 20 74 68 |t;when m|ode=0 th|
|00000a70| 65 6e 20 69 66 20 70 3e | 30 20 74 68 65 6e 20 64 |en if p>|0 then d|
|00000a80| 6f 3b 72 65 74 20 3d 20 | 31 3b 61 72 67 73 20 3d |o;ret = |1;args =|
|00000a90| 20 64 65 6c 77 6f 72 64 | 28 61 72 67 73 2c 20 70 | delword|(args, p|
|00000aa0| 2c 20 31 29 3b 65 6e 64 | 3b 65 6c 73 65 20 72 65 |, 1);end|;else re|
|00000ab0| 74 20 3d 20 6f 6c 64 3b | 77 68 65 6e 20 6d 6f 64 |t = old;|when mod|
|00000ac0| 65 3d 31 20 74 68 65 6e | 20 69 66 20 70 3e 30 20 |e=1 then| if p>0 |
|00000ad0| 74 68 65 6e 20 64 6f 3b | 6c 65 66 74 20 3d 20 73 |then do;|left = s|
|00000ae0| 75 62 77 6f 72 64 28 61 | 72 67 73 2c 20 31 2c 20 |ubword(a|rgs, 1, |
|00000af0| 70 2d 31 29 3b 72 65 73 | 74 20 3d 20 73 75 62 77 |p-1);res|t = subw|
|00000b00| 6f 72 64 28 61 72 67 73 | 2c 20 70 2b 31 29 3b 69 |ord(args|, p+1);i|
|00000b10| 66 20 6c 65 66 74 28 72 | 65 73 74 2c 20 31 29 3d |f left(r|est, 1)=|
|00000b20| 27 22 27 20 74 68 65 6e | 20 70 61 72 73 65 20 76 |'"' then| parse v|
|00000b30| 61 72 20 72 65 73 74 20 | 2e 20 27 22 27 20 72 65 |ar rest |. '"' re|
|00000b40| 74 20 27 22 27 20 72 65 | 73 74 3b 65 6c 73 65 20 |t '"' re|st;else |
|00000b50| 70 61 72 73 65 20 76 61 | 72 20 72 65 73 74 20 72 |parse va|r rest r|
|00000b60| 65 74 20 72 65 73 74 3b | 61 72 67 73 20 3d 20 73 |et rest;|args = s|
|00000b70| 74 72 69 70 28 6c 65 66 | 74 20 73 74 72 69 70 28 |trip(lef|t strip(|
|00000b80| 72 65 73 74 29 29 3b 65 | 6e 64 3b 65 6c 73 65 20 |rest));e|nd;else |
|00000b90| 72 65 74 20 3d 20 6f 6c | 64 3b 77 68 65 6e 20 6d |ret = ol|d;when m|
|00000ba0| 6f 64 65 3d 32 20 74 68 | 65 6e 20 64 6f 3b 69 66 |ode=2 th|en do;if|
|00000bb0| 20 6c 65 66 74 28 61 72 | 67 73 2c 20 31 29 3d 27 | left(ar|gs, 1)='|
|00000bc0| 22 27 20 74 68 65 6e 20 | 70 61 72 73 65 20 76 61 |"' then |parse va|
|00000bd0| 72 20 61 72 67 73 20 2e | 20 27 22 27 20 72 65 74 |r args .| '"' ret|
|00000be0| 20 27 22 27 20 61 72 67 | 73 3b 65 6c 73 65 20 70 | '"' arg|s;else p|
|00000bf0| 61 72 73 65 20 76 61 72 | 20 61 72 67 73 20 72 65 |arse var| args re|
|00000c00| 74 20 61 72 67 73 3b 69 | 66 20 73 74 72 69 70 28 |t args;i|f strip(|
|00000c10| 72 65 74 29 3d 27 27 20 | 74 68 65 6e 20 72 65 74 |ret)='' |then ret|
|00000c20| 20 3d 20 6f 6c 64 3b 65 | 6e 64 3b 6f 74 68 65 72 | = old;e|nd;other|
|00000c30| 77 69 73 65 20 65 78 69 | 74 20 39 39 3b 65 6e 64 |wise exi|t 99;end|
|00000c40| 3b 61 72 67 73 20 3d 20 | 73 74 72 69 70 28 61 72 |;args = |strip(ar|
|00000c50| 67 73 29 3b 72 65 74 20 | 3d 20 73 74 72 69 70 28 |gs);ret |= strip(|
|00000c60| 72 65 74 2c 20 27 62 27 | 2c 20 27 22 20 27 29 3b |ret, 'b'|, '" ');|
|00000c70| 72 65 74 75 72 6e 20 72 | 65 74 3b 47 65 74 5f 56 |return r|et;Get_V|
|00000c80| 65 72 73 69 6f 6e 3a 20 | 70 72 6f 63 65 64 75 72 |ersion: |procedur|
|00000c90| 65 3b 70 61 72 73 65 20 | 61 72 67 20 6d 6f 64 65 |e;parse |arg mode|
|00000ca0| 3b 70 61 72 73 65 20 76 | 61 6c 75 65 20 73 6f 75 |;parse v|alue sou|
|00000cb0| 72 63 65 6c 69 6e 65 28 | 33 2d 6d 6f 64 65 29 20 |rceline(|3-mode) |
|00000cc0| 77 69 74 68 20 2e 20 2e | 20 76 65 72 20 2e 3b 70 |with . .| ver .;p|
|00000cd0| 61 72 73 65 20 76 61 72 | 20 76 65 72 20 74 73 74 |arse var| ver tst|
|00000ce0| 20 27 df 27 20 2e 3b 69 | 66 20 7e 64 61 74 61 74 | '.' .;i|f ~datat|
|00000cf0| 79 70 65 28 73 74 72 69 | 70 28 74 73 74 2c 20 27 |ype(stri|p(tst, '|
|00000d00| 62 27 2c 20 27 2f 63 20 | 27 29 2c 20 27 4e 27 29 |b', '/c |'), 'N')|
|00000d10| 20 74 68 65 6e 20 69 66 | 20 7e 6d 6f 64 65 20 74 | then if| ~mode t|
|00000d20| 68 65 6e 20 76 65 72 20 | 3d 20 47 65 74 5f 56 65 |hen ver |= Get_Ve|
|00000d30| 72 73 69 6f 6e 28 31 29 | 3b 65 6c 73 65 20 65 78 |rsion(1)|;else ex|
|00000d40| 69 74 20 39 39 3b 72 65 | 74 75 72 6e 20 76 65 72 |it 99;re|turn ver|
|00000d50| 3b 48 65 61 64 65 72 3a | 3b 63 61 6c 6c 20 4c 6f |;Header:|;call Lo|
|00000d60| 67 28 2c 27 2f 27 29 3b | 63 61 6c 6c 20 4c 6f 67 |g(,'/');|call Log|
|00000d70| 28 27 2a 2a 2a 27 20 73 | 79 73 74 65 6d 2e 70 72 |('***' s|ystem.pr|
|00000d80| 67 2e 69 64 20 27 2a 2a | 2a 27 2c 20 27 2b 27 29 |g.id '**|*', '+')|
|00000d90| 3b 63 61 6c 6c 20 4c 6f | 67 28 27 20 27 73 79 73 |;call Lo|g(' 'sys|
|00000da0| 74 65 6d 2e 70 72 67 2e | 63 72 29 3b 63 61 6c 6c |tem.prg.|cr);call|
|00000db0| 20 4c 6f 67 28 29 3b 72 | 65 74 75 72 6e 3b 49 6e | Log();r|eturn;In|
|00000dc0| 69 74 3a 3b 73 79 73 74 | 65 6d 2e 20 3d 20 30 3b |it:;syst|em. = 0;|
|00000dd0| 73 79 73 74 65 6d 2e 70 | 72 67 2e 76 65 72 20 3d |system.p|rg.ver =|
|00000de0| 20 47 65 74 5f 56 65 72 | 73 69 6f 6e 28 30 29 3b | Get_Ver|sion(0);|
|00000df0| 73 79 73 74 65 6d 2e 70 | 72 67 2e 6e 61 6d 65 20 |system.p|rg.name |
|00000e00| 3d 20 27 4d 4d 5f 53 70 | 65 63 74 72 65 27 3b 73 |= 'MM_Sp|ectre';s|
|00000e10| 79 73 74 65 6d 2e 70 72 | 67 2e 69 64 20 3d 20 73 |ystem.pr|g.id = s|
|00000e20| 79 73 74 65 6d 2e 70 72 | 67 2e 6e 61 6d 65 20 27 |ystem.pr|g.name '|
|00000e30| 76 27 73 79 73 74 65 6d | 2e 70 72 67 2e 76 65 72 |v'system|.prg.ver|
|00000e40| 3b 73 79 73 74 65 6d 2e | 70 72 67 2e 63 66 67 20 |;system.|prg.cfg |
|00000e50| 3d 20 27 4d 4d 3a 43 6f | 6e 66 69 67 2f 27 73 79 |= 'MM:Co|nfig/'sy|
|00000e60| 73 74 65 6d 2e 70 72 67 | 2e 6e 61 6d 65 27 2e 63 |stem.prg|.name'.c|
|00000e70| 66 67 27 3b 73 79 73 74 | 65 6d 2e 70 72 67 2e 63 |fg';syst|em.prg.c|
|00000e80| 72 20 3d 20 27 28 43 29 | 31 39 39 38 20 4e 65 69 |r = '(C)|1998 Nei|
|00000e90| 6c 20 57 69 6c 6c 69 61 | 6d 73 27 3b 73 79 73 74 |l Willia|ms';syst|
|00000ea0| 65 6d 2e 74 6d 70 66 69 | 6c 65 20 3d 20 27 54 3a |em.tmpfi|le = 'T:|
|00000eb0| 27 73 79 73 74 65 6d 2e | 70 72 67 2e 6e 61 6d 65 |'system.|prg.name|
|00000ec0| 27 2e 74 6d 70 27 3b 73 | 79 73 74 65 6d 2e 6d 6d |'.tmp';s|ystem.mm|
|00000ed0| 2e 6c 6f 67 70 72 65 20 | 3d 20 67 65 74 63 6c 69 |.logpre |= getcli|
|00000ee0| 70 28 27 4d 4d 5f 4c 6f | 67 50 72 65 27 29 3b 73 |p('MM_Lo|gPre');s|
|00000ef0| 79 73 74 65 6d 2e 70 72 | 67 2e 6c 6f 67 70 72 65 |ystem.pr|g.logpre|
|00000f00| 20 3d 20 73 79 73 74 65 | 6d 2e 6d 6d 2e 6c 6f 67 | = syste|m.mm.log|
|00000f10| 70 72 65 27 7c 27 3b 73 | 79 73 74 65 6d 2e 70 72 |pre'|';s|ystem.pr|
|00000f20| 67 2e 6c 6f 67 6c 65 76 | 65 6c 20 3d 20 32 3b 63 |g.loglev|el = 2;c|
|00000f30| 61 6c 6c 20 73 65 74 63 | 6c 69 70 28 27 4d 4d 5f |all setc|lip('MM_|
|00000f40| 4c 6f 67 50 72 65 27 2c | 20 73 79 73 74 65 6d 2e |LogPre',| system.|
|00000f50| 70 72 67 2e 6c 6f 67 70 | 72 65 29 3b 73 79 73 74 |prg.logp|re);syst|
|00000f60| 65 6d 2e 63 6d 64 6f 70 | 74 73 20 3d 20 27 4f 50 |em.cmdop|ts = 'OP|
|00000f70| 54 49 4f 4e 53 27 3b 73 | 79 73 74 65 6d 2e 6e 61 |TIONS';s|ystem.na|
|00000f80| 6d 65 73 2e 63 6f 75 6e | 74 20 3d 20 30 3b 73 79 |mes.coun|t = 0;sy|
|00000f90| 73 74 65 6d 2e 61 72 65 | 61 73 2e 63 6f 75 6e 74 |stem.are|as.count|
|00000fa0| 20 3d 20 30 3b 73 79 73 | 74 65 6d 2e 6d 73 67 2e | = 0;sys|tem.msg.|
|00000fb0| 63 6f 75 6e 74 20 3d 20 | 30 3b 63 61 6c 6c 20 49 |count = |0;call I|
|00000fc0| 6e 63 6c 75 64 65 5f 4c | 69 62 28 27 72 65 78 78 |nclude_L|ib('rexx|
|00000fd0| 73 75 70 70 6f 72 74 27 | 29 3b 72 65 74 75 72 6e |support'|);return|
|00000fe0| 3b 49 6e 63 6c 75 64 65 | 5f 4c 69 62 3a 20 70 72 |;Include|_Lib: pr|
|00000ff0| 6f 63 65 64 75 72 65 20 | 45 78 70 6f 73 65 20 73 |ocedure |Expose s|
|00001000| 79 73 74 65 6d 2e 3b 70 | 61 72 73 65 20 61 72 67 |ystem.;p|arse arg|
|00001010| 20 6c 69 62 2c 20 70 72 | 69 6f 3b 69 66 20 72 69 | lib, pr|io;if ri|
|00001020| 67 68 74 28 75 70 70 65 | 72 28 6c 69 62 29 2c 20 |ght(uppe|r(lib), |
|00001030| 38 29 7e 3d 27 2e 4c 49 | 42 52 41 52 59 27 20 74 |8)~='.LI|BRARY' t|
|00001040| 68 65 6e 20 6c 69 62 20 | 3d 20 6c 69 62 27 2e 6c |hen lib |= lib'.l|
|00001050| 69 62 72 61 72 79 27 3b | 69 66 20 70 72 69 6f 3d |ibrary';|if prio=|
|00001060| 27 27 20 74 68 65 6e 20 | 70 72 69 6f 20 3d 20 30 |'' then |prio = 0|
|00001070| 3b 69 66 20 7e 73 68 6f | 77 28 27 6c 27 2c 20 6c |;if ~sho|w('l', l|
|00001080| 69 62 29 20 74 68 65 6e | 20 69 66 20 7e 61 64 64 |ib) then| if ~add|
|00001090| 6c 69 62 28 6c 69 62 2c | 20 70 72 69 6f 2c 20 2d |lib(lib,| prio, -|
|000010a0| 33 30 2c 20 30 29 20 74 | 68 65 6e 20 63 61 6c 6c |30, 0) t|hen call|
|000010b0| 20 51 75 69 74 28 32 30 | 2c 20 27 43 6f 75 6c 64 | Quit(20|, 'Could|
|000010c0| 20 6e 6f 74 20 6f 70 65 | 6e 27 20 6c 69 62 27 21 | not ope|n' lib'!|
|000010d0| 21 21 27 29 3b 72 65 74 | 75 72 6e 3b 49 4f 65 72 |!!');ret|urn;IOer|
|000010e0| 72 3a 3b 73 69 67 6e 61 | 6c 20 6f 66 66 20 69 6f |r:;signa|l off io|
|000010f0| 65 72 72 3b 72 65 74 75 | 72 6e 5f 63 6f 64 65 20 |err;retu|rn_code |
|00001100| 3d 20 32 30 3b 65 72 72 | 6f 72 5f 6c 69 6e 65 20 |= 20;err|or_line |
|00001110| 3d 20 73 69 67 6c 3b 65 | 72 72 6f 72 5f 6d 73 67 |= sigl;e|rror_msg|
|00001120| 20 3d 20 27 49 4f 2d 65 | 72 72 6f 72 27 20 72 63 | = 'IO-e|rror' rc|
|00001130| 20 27 61 74 20 6c 69 6e | 65 27 20 73 69 67 6c 20 | 'at lin|e' sigl |
|00001140| 27 5b 27 65 72 72 6f 72 | 74 65 78 74 28 72 63 29 |'['error|text(rc)|
|00001150| 27 5d 27 29 3b 72 63 20 | 3d 20 30 3b 73 69 67 6e |']');rc |= 0;sign|
|00001160| 61 6c 20 45 78 69 74 3b | 4c 6f 67 3a 20 70 72 6f |al Exit;|Log: pro|
|00001170| 63 65 64 75 72 65 20 45 | 78 70 6f 73 65 20 73 79 |cedure E|xpose sy|
|00001180| 73 74 65 6d 2e 3b 70 61 | 72 73 65 20 61 72 67 20 |stem.;pa|rse arg |
|00001190| 74 65 78 74 2c 20 70 72 | 65 2c 20 6c 65 76 65 6c |text, pr|e, level|
|000011a0| 3b 69 66 20 7e 64 61 74 | 61 74 79 70 65 28 6c 65 |;if ~dat|atype(le|
|000011b0| 76 65 6c 2c 20 27 4e 27 | 29 20 74 68 65 6e 20 6c |vel, 'N'|) then l|
|000011c0| 65 76 65 6c 20 3d 20 73 | 79 73 74 65 6d 2e 70 72 |evel = s|ystem.pr|
|000011d0| 67 2e 6c 6f 67 6c 65 76 | 65 6c 3b 74 6d 70 20 3d |g.loglev|el;tmp =|
|000011e0| 20 77 6f 72 64 28 27 50 | 52 47 20 4d 4d 27 2c 20 | word('P|RG MM', |
|000011f0| 28 70 72 65 7e 3d 27 27 | 29 2b 31 29 3b 74 65 78 |(pre~=''|)+1);tex|
|00001200| 74 20 3d 20 73 79 73 74 | 65 6d 2e 74 6d 70 2e 6c |t = syst|em.tmp.l|
|00001210| 6f 67 70 72 65 20 7c 7c | 20 70 72 65 27 20 27 74 |ogpre ||| pre' 't|
|00001220| 65 78 74 3b 4d 4d 5f 57 | 72 69 74 65 4c 6f 67 20 |ext;MM_W|riteLog |
|00001230| 27 74 65 78 74 27 20 6c | 65 76 65 6c 3b 72 65 74 |'text' l|evel;ret|
|00001240| 75 72 6e 3b 51 75 69 74 | 3a 3b 70 61 72 73 65 20 |urn;Quit|:;parse |
|00001250| 61 72 67 20 72 65 74 75 | 72 6e 5f 63 6f 64 65 2c |arg retu|rn_code,|
|00001260| 20 65 72 72 6f 72 5f 6d | 73 67 3b 65 72 72 6f 72 | error_m|sg;error|
|00001270| 5f 6c 69 6e 65 20 3d 20 | 30 3b 72 63 20 3d 20 30 |_line = |0;rc = 0|
|00001280| 3b 73 69 67 6e 61 6c 20 | 45 78 69 74 3b 52 65 61 |;signal |Exit;Rea|
|00001290| 64 5f 43 66 67 3a 20 70 | 72 6f 63 65 64 75 72 65 |d_Cfg: p|rocedure|
|000012a0| 20 45 78 70 6f 73 65 20 | 73 79 73 74 65 6d 2e 3b | Expose |system.;|
|000012b0| 4d 4d 5f 52 65 61 64 53 | 74 65 6d 20 73 79 73 74 |MM_ReadS|tem syst|
|000012c0| 65 6d 2e 70 72 67 2e 63 | 66 67 20 27 63 66 67 27 |em.prg.c|fg 'cfg'|
|000012d0| 3b 69 66 20 52 43 7e 3d | 30 20 74 68 65 6e 20 63 |;if RC~=|0 then c|
|000012e0| 61 6c 6c 20 51 75 69 74 | 28 33 31 2c 20 27 55 6e |all Quit|(31, 'Un|
|000012f0| 61 62 6c 65 20 74 6f 20 | 72 65 61 64 27 20 73 79 |able to |read' sy|
|00001300| 73 74 65 6d 2e 70 72 67 | 2e 63 66 67 27 21 21 21 |stem.prg|.cfg'!!!|
|00001310| 27 29 3b 63 61 6c 6c 20 | 4c 6f 67 28 27 52 65 61 |');call |Log('Rea|
|00001320| 64 69 6e 67 20 63 6f 6e | 66 69 67 2e 2e 2e 27 29 |ding con|fig...')|
|00001330| 3b 63 6e 74 20 3d 20 30 | 3b 64 6f 20 6c 3d 30 20 |;cnt = 0|;do l=0 |
|00001340| 74 6f 20 63 66 67 2e 63 | 6f 75 6e 74 2d 31 3b 70 |to cfg.c|ount-1;p|
|00001350| 61 72 73 65 20 76 61 6c | 75 65 20 73 74 72 69 70 |arse val|ue strip|
|00001360| 28 74 72 61 6e 73 6c 61 | 74 65 28 63 66 67 2e 6c |(transla|te(cfg.l|
|00001370| 2c 20 27 20 27 2c 20 27 | 39 27 78 29 29 20 77 69 |, ' ', '|9'x)) wi|
|00001380| 74 68 20 6b 65 79 20 61 | 72 67 73 20 27 3b 27 20 |th key a|rgs ';' |
|00001390| 2e 3b 6b 65 79 20 3d 20 | 75 70 70 65 72 28 73 74 |.;key = |upper(st|
|000013a0| 72 69 70 28 6b 65 79 29 | 29 3b 69 66 20 6b 65 79 |rip(key)|);if key|
|000013b0| 7e 3d 27 23 4d 53 47 27 | 20 74 68 65 6e 20 61 72 |~='#MSG'| then ar|
|000013c0| 67 73 20 3d 20 73 74 72 | 69 70 28 61 72 67 73 29 |gs = str|ip(args)|
|000013d0| 3b 73 65 6c 65 63 74 3b | 77 68 65 6e 20 6b 65 79 |;select;|when key|
|000013e0| 3d 27 27 20 74 68 65 6e | 20 69 74 65 72 61 74 65 |='' then| iterate|
|000013f0| 3b 77 68 65 6e 20 6b 65 | 79 3d 27 23 41 52 45 41 |;when ke|y='#AREA|
|00001400| 27 20 74 68 65 6e 20 64 | 6f 3b 69 20 3d 20 73 79 |' then d|o;i = sy|
|00001410| 73 74 65 6d 2e 61 72 65 | 61 73 2e 63 6f 75 6e 74 |stem.are|as.count|
|00001420| 3b 73 79 73 74 65 6d 2e | 61 72 65 61 73 2e 69 2e |;system.|areas.i.|
|00001430| 63 68 65 63 6b 20 3d 20 | 77 6f 72 64 28 20 61 72 |check = |word( ar|
|00001440| 67 73 2c 20 31 20 29 3b | 69 66 20 77 6f 72 64 28 |gs, 1 );|if word(|
|00001450| 20 61 72 67 73 2c 20 32 | 20 29 20 7e 3d 20 27 27 | args, 2| ) ~= ''|
|00001460| 20 74 68 65 6e 20 73 79 | 73 74 65 6d 2e 61 72 65 | then sy|stem.are|
|00001470| 61 73 2e 69 2e 72 65 70 | 6c 79 20 3d 20 77 6f 72 |as.i.rep|ly = wor|
|00001480| 64 28 20 61 72 67 73 2c | 20 32 20 29 3b 65 6c 73 |d( args,| 2 );els|
|00001490| 65 3b 73 79 73 74 65 6d | 2e 61 72 65 61 73 2e 69 |e;system|.areas.i|
|000014a0| 2e 72 65 70 6c 79 20 3d | 20 73 79 73 74 65 6d 2e |.reply =| system.|
|000014b0| 61 72 65 61 73 2e 69 2e | 63 68 65 63 6b 3b 73 79 |areas.i.|check;sy|
|000014c0| 73 74 65 6d 2e 61 72 65 | 61 73 2e 63 6f 75 6e 74 |stem.are|as.count|
|000014d0| 20 3d 20 73 79 73 74 65 | 6d 2e 61 72 65 61 73 2e | = syste|m.areas.|
|000014e0| 63 6f 75 6e 74 2b 31 3b | 65 6e 64 3b 77 68 65 6e |count+1;|end;when|
|000014f0| 20 6b 65 79 3d 27 23 4e | 41 4d 45 27 20 74 68 65 | key='#N|AME' the|
|00001500| 6e 20 64 6f 3b 69 20 3d | 20 73 79 73 74 65 6d 2e |n do;i =| system.|
|00001510| 6e 61 6d 65 73 2e 63 6f | 75 6e 74 3b 73 79 73 74 |names.co|unt;syst|
|00001520| 65 6d 2e 6e 61 6d 65 73 | 2e 69 20 3d 20 61 72 67 |em.names|.i = arg|
|00001530| 73 3b 73 79 73 74 65 6d | 2e 6e 61 6d 65 73 2e 63 |s;system|.names.c|
|00001540| 6f 75 6e 74 20 3d 20 73 | 79 73 74 65 6d 2e 6e 61 |ount = s|ystem.na|
|00001550| 6d 65 73 2e 63 6f 75 6e | 74 2b 31 3b 65 6e 64 3b |mes.coun|t+1;end;|
|00001560| 77 68 65 6e 20 6b 65 79 | 3d 27 23 4e 45 54 4d 41 |when key|='#NETMA|
|00001570| 49 4c 27 20 74 68 65 6e | 20 73 79 73 74 65 6d 2e |IL' then| system.|
|00001580| 61 72 65 61 73 2e 6e 65 | 74 6d 61 69 6c 20 3d 20 |areas.ne|tmail = |
|00001590| 31 3b 77 68 65 6e 20 6b | 65 79 3d 27 23 4d 53 47 |1;when k|ey='#MSG|
|000015a0| 27 20 74 68 65 6e 20 64 | 6f 3b 69 3d 73 79 73 74 |' then d|o;i=syst|
|000015b0| 65 6d 2e 6d 73 67 2e 63 | 6f 75 6e 74 3b 73 79 73 |em.msg.c|ount;sys|
|000015c0| 74 65 6d 2e 6d 73 67 2e | 69 20 3d 20 61 72 67 73 |tem.msg.|i = args|
|000015d0| 3b 73 79 73 74 65 6d 2e | 6d 73 67 2e 63 6f 75 6e |;system.|msg.coun|
|000015e0| 74 20 3d 20 73 79 73 74 | 65 6d 2e 6d 73 67 2e 63 |t = syst|em.msg.c|
|000015f0| 6f 75 6e 74 2b 31 3b 65 | 6e 64 3b 77 68 65 6e 20 |ount+1;e|nd;when |
|00001600| 6b 65 79 3d 27 23 4c 4f | 47 27 20 74 68 65 6e 20 |key='#LO|G' then |
|00001610| 73 79 73 74 65 6d 2e 6c | 6f 67 66 69 6c 65 20 3d |system.l|ogfile =|
|00001620| 20 61 72 67 73 3b 6f 74 | 68 65 72 77 69 73 65 20 | args;ot|herwise |
|00001630| 73 61 79 20 27 2a 2a 2a | 20 43 46 47 2d 45 52 52 |say '***| CFG-ERR|
|00001640| 4f 52 3a 20 55 6e 6b 6e | 6f 77 6e 20 6b 65 77 6f |OR: Unkn|own kewo|
|00001650| 72 64 20 22 27 6b 65 79 | 27 22 20 61 74 20 6c 69 |rd "'key|'" at li|
|00001660| 6e 65 27 20 6c 27 21 21 | 21 27 3b 65 6e 64 3b 63 |ne' l'!!|!';end;c|
|00001670| 6e 74 20 3d 20 63 6e 74 | 2b 31 3b 65 6e 64 3b 72 |nt = cnt|+1;end;r|
|00001680| 65 74 75 72 6e 3b 52 65 | 70 6c 61 63 65 3a 20 70 |eturn;Re|place: p|
|00001690| 72 6f 63 65 64 75 72 65 | 3b 70 61 72 73 65 20 61 |rocedure|;parse a|
|000016a0| 72 67 20 73 74 72 69 6e | 67 2c 20 6e 65 77 2c 20 |rg strin|g, new, |
|000016b0| 6f 6c 64 3b 64 6f 20 77 | 68 69 6c 65 20 69 6e 64 |old;do w|hile ind|
|000016c0| 65 78 28 73 74 72 69 6e | 67 2c 20 6f 6c 64 29 20 |ex(strin|g, old) |
|000016d0| 7e 3d 20 30 3b 69 6e 74 | 65 72 70 72 65 74 20 22 |~= 0;int|erpret "|
|000016e0| 70 61 72 73 65 20 76 61 | 72 20 73 74 72 69 6e 67 |parse va|r string|
|000016f0| 20 6c 20 27 22 6f 6c 64 | 22 27 20 72 22 3b 73 74 | l '"old|"' r";st|
|00001700| 72 69 6e 67 20 3d 20 6c | 20 7c 7c 20 6e 65 77 20 |ring = l| || new |
|00001710| 7c 7c 20 72 3b 65 6e 64 | 3b 72 65 74 75 72 6e 20 ||| r;end|;return |
|00001720| 73 74 72 69 6e 67 3b 53 | 79 6e 74 61 78 3a 3b 73 |string;S|yntax:;s|
|00001730| 69 67 6e 61 6c 20 6f 66 | 66 20 73 79 6e 74 61 78 |ignal of|f syntax|
|00001740| 3b 72 65 74 75 72 6e 5f | 63 6f 64 65 20 3d 20 34 |;return_|code = 4|
|00001750| 30 3b 65 72 72 6f 72 5f | 6c 69 6e 65 20 3d 20 73 |0;error_|line = s|
|00001760| 69 67 6c 3b 65 72 72 6f | 72 5f 6d 73 67 20 3d 20 |igl;erro|r_msg = |
|00001770| 27 53 79 6e 74 61 78 2d | 65 72 72 6f 72 27 20 72 |'Syntax-|error' r|
|00001780| 63 20 27 61 74 20 6c 69 | 6e 65 27 20 73 69 67 6c |c 'at li|ne' sigl|
|00001790| 20 27 5b 27 65 72 72 6f | 72 74 65 78 74 28 72 63 | '['erro|rtext(rc|
|000017a0| 29 27 5d 27 3b 72 63 20 | 3d 20 30 3b 73 69 67 6e |)']';rc |= 0;sign|
|000017b0| 61 6c 20 45 78 69 74 3b | 55 73 61 67 65 3a 3b 72 |al Exit;|Usage:;r|
|000017c0| 78 2e 20 3d 20 27 27 3b | 72 78 2e 30 2e 30 20 3d |x. = '';|rx.0.0 =|
|000017d0| 20 27 5b 72 78 5d 20 27 | 3b 72 78 2e 30 2e 31 20 | '[rx] '|;rx.0.1 |
|000017e0| 3d 20 27 5b 2e 72 65 78 | 78 5d 27 3b 6d 20 3d 20 |= '[.rex|x]';m = |
|000017f0| 70 6f 73 28 27 2f 65 27 | 2c 20 73 79 73 74 65 6d |pos('/e'|, system|
|00001800| 2e 70 72 67 2e 76 65 72 | 29 3e 30 3b 73 61 79 3b |.prg.ver|)>0;say;|
|00001810| 73 61 79 20 27 55 73 61 | 67 65 3a 27 20 72 78 2e |say 'Usa|ge:' rx.|
|00001820| 6d 2e 30 20 7c 7c 20 73 | 79 73 74 65 6d 2e 70 72 |m.0 || s|ystem.pr|
|00001830| 67 2e 6e 61 6d 65 20 7c | 7c 20 72 78 2e 6d 2e 31 |g.name ||| rx.m.1|
|00001840| 20 73 79 73 74 65 6d 2e | 63 6d 64 6f 70 74 73 3b | system.|cmdopts;|
|00001850| 73 61 79 3b 63 61 6c 6c | 20 51 75 69 74 28 30 2c |say;call| Quit(0,|
|00001860| 20 27 55 73 61 67 65 20 | 72 65 71 75 65 73 74 65 | 'Usage |requeste|
|00001870| 64 2e 27 29 3b 50 61 72 | 73 65 3a 20 70 72 6f 63 |d.');Par|se: proc|
|00001880| 65 64 75 72 65 20 45 78 | 70 6f 73 65 20 73 79 73 |edure Ex|pose sys|
|00001890| 74 65 6d 2e 3b 63 61 6c | 6c 20 6c 6f 67 28 20 27 |tem.;cal|l log( '|
|000018a0| 43 68 65 63 6b 69 6e 67 | 20 61 72 65 61 73 2e 2e |Checking| areas..|
|000018b0| 2e 27 20 29 3b 74 6f 74 | 61 6c 6d 73 67 73 20 3d |.' );tot|almsgs =|
|000018c0| 20 30 3b 64 6f 20 69 20 | 3d 20 30 20 74 6f 20 73 | 0;do i |= 0 to s|
|000018d0| 79 73 74 65 6d 2e 61 72 | 65 61 73 2e 63 6f 75 6e |ystem.ar|eas.coun|
|000018e0| 74 2d 31 3b 64 6f 20 6a | 20 3d 20 30 20 74 6f 20 |t-1;do j| = 0 to |
|000018f0| 73 79 73 74 65 6d 2e 6e | 61 6d 65 73 2e 63 6f 75 |system.n|ames.cou|
|00001900| 6e 74 2d 31 3b 4d 4d 5f | 53 65 61 72 63 68 4d 73 |nt-1;MM_|SearchMs|
|00001910| 67 73 20 73 79 73 74 65 | 6d 2e 61 72 65 61 73 2e |gs syste|m.areas.|
|00001920| 69 2e 63 68 65 63 6b 20 | 27 6d 73 67 73 27 20 27 |i.check |'msgs' '|
|00001930| 23 3f 27 20 27 22 27 73 | 79 73 74 65 6d 2e 6e 61 |#?' '"'s|ystem.na|
|00001940| 6d 65 73 2e 6a 27 22 27 | 20 27 23 3f 27 20 27 21 |mes.j'"'| '#?' '!|
|00001950| 53 45 4e 54 27 3b 69 66 | 20 52 43 20 3d 20 30 20 |SENT';if| RC = 0 |
|00001960| 74 68 65 6e 20 64 6f 3b | 64 6f 20 6b 20 3d 20 30 |then do;|do k = 0|
|00001970| 20 74 6f 20 6d 73 67 73 | 2e 63 6f 75 6e 74 2d 31 | to msgs|.count-1|
|00001980| 3b 74 6f 74 61 6c 6d 73 | 67 73 20 3d 20 74 6f 74 |;totalms|gs = tot|
|00001990| 61 6c 6d 73 67 73 20 2b | 20 31 3b 63 61 6c 6c 20 |almsgs +| 1;call |
|000019a0| 52 65 70 6c 79 28 20 73 | 79 73 74 65 6d 2e 61 72 |Reply( s|ystem.ar|
|000019b0| 65 61 73 2e 69 2e 63 68 | 65 63 6b 2c 20 6d 73 67 |eas.i.ch|eck, msg|
|000019c0| 73 2e 6b 2c 20 73 79 73 | 74 65 6d 2e 61 72 65 61 |s.k, sys|tem.area|
|000019d0| 73 2e 69 2e 72 65 70 6c | 79 20 29 3b 65 6e 64 3b |s.i.repl|y );end;|
|000019e0| 65 6e 64 3b 65 6e 64 3b | 65 6e 64 3b 69 66 20 73 |end;end;|end;if s|
|000019f0| 79 73 74 65 6d 2e 61 72 | 65 61 73 2e 6e 65 74 6d |ystem.ar|eas.netm|
|00001a00| 61 69 6c 20 7e 3d 20 27 | 53 59 53 54 45 4d 2e 41 |ail ~= '|SYSTEM.A|
|00001a10| 52 45 41 53 2e 4e 45 54 | 4d 41 49 4c 27 20 74 68 |REAS.NET|MAIL' th|
|00001a20| 65 6e 20 64 6f 3b 4d 4d | 5f 47 65 74 41 72 65 61 |en do;MM|_GetArea|
|00001a30| 73 20 6d 61 69 6c 61 72 | 65 61 73 20 27 4d 41 49 |s mailar|eas 'MAI|
|00001a40| 4c 27 3b 64 6f 20 61 20 | 3d 20 30 20 74 6f 20 6d |L';do a |= 0 to m|
|00001a50| 61 69 6c 61 72 65 61 73 | 2e 63 6f 75 6e 74 2d 31 |ailareas|.count-1|
|00001a60| 3b 64 6f 20 6a 20 3d 20 | 30 20 74 6f 20 73 79 73 |;do j = |0 to sys|
|00001a70| 74 65 6d 2e 6e 61 6d 65 | 73 2e 63 6f 75 6e 74 2d |tem.name|s.count-|
|00001a80| 31 3b 4d 4d 5f 53 65 61 | 72 63 68 4d 73 67 73 20 |1;MM_Sea|rchMsgs |
|00001a90| 6d 61 69 6c 61 72 65 61 | 73 2e 61 20 27 6d 73 67 |mailarea|s.a 'msg|
|00001aa0| 73 27 20 27 23 3f 27 20 | 27 22 27 73 79 73 74 65 |s' '#?' |'"'syste|
|00001ab0| 6d 2e 6e 61 6d 65 73 2e | 6a 27 22 27 20 27 23 3f |m.names.|j'"' '#?|
|00001ac0| 27 20 27 21 53 45 4e 54 | 27 3b 69 66 20 52 43 20 |' '!SENT|';if RC |
|00001ad0| 3d 20 30 20 74 68 65 6e | 20 64 6f 3b 64 6f 20 6b |= 0 then| do;do k|
|00001ae0| 20 3d 20 30 20 74 6f 20 | 6d 73 67 73 2e 63 6f 75 | = 0 to |msgs.cou|
|00001af0| 6e 74 2d 31 3b 74 6f 74 | 61 6c 6d 73 67 73 20 3d |nt-1;tot|almsgs =|
|00001b00| 20 74 6f 74 61 6c 6d 73 | 67 73 20 2b 20 31 3b 63 | totalms|gs + 1;c|
|00001b10| 61 6c 6c 20 52 65 70 6c | 79 28 20 6d 61 69 6c 61 |all Repl|y( maila|
|00001b20| 72 65 61 73 2e 61 2c 20 | 6d 73 67 73 2e 6b 2c 20 |reas.a, |msgs.k, |
|00001b30| 6d 61 69 6c 61 72 65 61 | 73 2e 61 20 29 3b 65 6e |mailarea|s.a );en|
|00001b40| 64 3b 65 6e 64 3b 65 6e | 64 3b 65 6e 64 3b 65 6e |d;end;en|d;end;en|
|00001b50| 64 3b 63 61 6c 6c 20 6c | 6f 67 28 20 27 52 65 70 |d;call l|og( 'Rep|
|00001b60| 6c 69 65 64 20 74 6f 20 | 27 7c 7c 20 74 6f 74 61 |lied to |'|| tota|
|00001b70| 6c 6d 73 67 73 20 7c 7c | 27 20 6d 65 73 73 61 67 |lmsgs |||' messag|
|00001b80| 65 73 2e 27 20 29 3b 72 | 65 74 75 72 6e 3b 52 65 |es.' );r|eturn;Re|
|00001b90| 70 6c 79 3a 20 70 72 6f | 63 65 64 75 72 65 20 45 |ply: pro|cedure E|
|00001ba0| 78 70 6f 73 65 20 73 79 | 73 74 65 6d 2e 3b 70 61 |xpose sy|stem.;pa|
|00001bb0| 72 73 65 20 61 72 67 20 | 61 72 65 61 2c 20 6e 75 |rse arg |area, nu|
|00001bc0| 6d 2c 20 72 65 70 6c 79 | 61 72 65 61 3b 4d 4d 5f |m, reply|area;MM_|
|00001bd0| 52 65 61 64 4d 73 67 20 | 61 72 65 61 20 6e 75 6d |ReadMsg |area num|
|00001be0| 20 27 72 6d 73 67 27 3b | 69 66 20 52 43 20 3d 20 | 'rmsg';|if RC = |
|00001bf0| 30 20 74 68 65 6e 20 64 | 6f 3b 64 6f 20 71 20 3d |0 then d|o;do q =|
|00001c00| 20 30 20 74 6f 20 72 6d | 73 67 2e 68 65 61 64 2e | 0 to rm|sg.head.|
|00001c10| 63 6f 75 6e 74 2d 31 3b | 73 65 6c 65 63 74 3b 77 |count-1;|select;w|
|00001c20| 68 65 6e 20 6c 65 66 74 | 28 20 72 6d 73 67 2e 68 |hen left|( rmsg.h|
|00001c30| 65 61 64 2e 71 2c 20 37 | 20 29 20 3d 20 27 31 27 |ead.q, 7| ) = '1'|
|00001c40| 78 20 7c 7c 20 27 4d 53 | 47 49 44 3a 20 27 20 74 |x || 'MS|GID: ' t|
|00001c50| 68 65 6e 20 64 6f 3b 72 | 65 70 6c 79 69 64 20 3d |hen do;r|eplyid =|
|00001c60| 20 72 69 67 68 74 28 20 | 72 6d 73 67 2e 68 65 61 | right( |rmsg.hea|
|00001c70| 64 2e 71 2c 20 6c 65 6e | 67 74 68 28 20 72 6d 73 |d.q, len|gth( rms|
|00001c80| 67 2e 68 65 61 64 2e 71 | 20 29 2d 38 20 29 3b 65 |g.head.q| )-8 );e|
|00001c90| 6e 64 3b 77 68 65 6e 20 | 6c 65 66 74 28 20 72 6d |nd;when |left( rm|
|00001ca0| 73 67 2e 68 65 61 64 2e | 71 2c 20 31 31 20 29 20 |sg.head.|q, 11 ) |
|00001cb0| 3d 20 27 31 27 78 20 7c | 7c 20 27 52 45 50 4c 59 |= '1'x ||| 'REPLY|
|00001cc0| 41 44 44 52 20 27 20 74 | 68 65 6e 20 64 6f 3b 72 |ADDR ' t|hen do;r|
|00001cd0| 65 70 6c 79 61 64 64 72 | 20 3d 20 77 6f 72 64 28 |eplyaddr| = word(|
|00001ce0| 20 72 6d 73 67 2e 68 65 | 61 64 2e 71 2c 20 32 20 | rmsg.he|ad.q, 2 |
|00001cf0| 29 3b 65 6e 64 3b 77 68 | 65 6e 20 6c 65 66 74 28 |);end;wh|en left(|
|00001d00| 20 72 6d 73 67 2e 68 65 | 61 64 2e 71 2c 20 39 20 | rmsg.he|ad.q, 9 |
|00001d10| 29 20 3d 20 27 31 27 78 | 20 7c 7c 20 27 52 45 50 |) = '1'x| || 'REP|
|00001d20| 4c 59 54 4f 20 27 20 74 | 68 65 6e 20 64 6f 3b 72 |LYTO ' t|hen do;r|
|00001d30| 65 70 6c 79 74 6f 61 64 | 64 72 20 3d 20 77 6f 72 |eplytoad|dr = wor|
|00001d40| 64 28 20 72 6d 73 67 2e | 68 65 61 64 2e 71 2c 20 |d( rmsg.|head.q, |
|00001d50| 32 20 29 3b 72 65 70 6c | 79 74 6f 6e 61 6d 65 20 |2 );repl|ytoname |
|00001d60| 3d 20 77 6f 72 64 28 20 | 72 6d 73 67 2e 68 65 61 |= word( |rmsg.hea|
|00001d70| 64 2e 71 2c 20 33 20 29 | 3b 65 6e 64 3b 6f 74 68 |d.q, 3 )|;end;oth|
|00001d80| 65 72 77 69 73 65 20 6e | 6f 70 3b 65 6e 64 3b 65 |erwise n|op;end;e|
|00001d90| 6e 64 3b 69 66 20 4f 70 | 65 6e 28 27 66 68 27 2c |nd;if Op|en('fh',|
|00001da0| 20 73 79 73 74 65 6d 2e | 74 6d 70 66 69 6c 65 2c | system.|tmpfile,|
|00001db0| 20 27 57 27 29 20 74 68 | 65 6e 20 64 6f 3b 69 66 | 'W') th|en do;if|
|00001dc0| 20 72 65 70 6c 79 69 64 | 20 7e 3d 20 27 52 45 50 | replyid| ~= 'REP|
|00001dd0| 4c 59 49 44 27 20 74 68 | 65 6e 20 63 61 6c 6c 20 |LYID' th|en call |
|00001de0| 77 72 69 74 65 6c 6e 28 | 27 66 68 27 2c 20 27 31 |writeln(|'fh', '1|
|00001df0| 27 78 20 7c 7c 20 27 52 | 45 50 4c 59 3a 20 27 7c |'x || 'R|EPLY: '||
|00001e00| 7c 72 65 70 6c 79 69 64 | 20 29 3b 69 66 20 72 65 ||replyid| );if re|
|00001e10| 70 6c 79 61 64 64 72 20 | 7e 3d 20 27 52 45 50 4c |plyaddr |~= 'REPL|
|00001e20| 59 41 44 44 52 27 20 74 | 68 65 6e 20 64 6f 3b 63 |YADDR' t|hen do;c|
|00001e30| 61 6c 6c 20 77 72 69 74 | 65 6c 6e 28 27 66 68 27 |all writ|eln('fh'|
|00001e40| 2c 20 27 54 6f 3a 20 27 | 7c 7c 72 65 70 6c 79 61 |, 'To: '|||replya|
|00001e50| 64 64 72 20 29 3b 63 61 | 6c 6c 20 77 72 69 74 65 |ddr );ca|ll write|
|00001e60| 6c 6e 28 27 66 68 27 2c | 20 27 27 29 3b 65 6e 64 |ln('fh',| '');end|
|00001e70| 3b 64 6f 20 77 20 3d 20 | 30 20 74 6f 20 73 79 73 |;do w = |0 to sys|
|00001e80| 74 65 6d 2e 6d 73 67 2e | 63 6f 75 6e 74 2d 31 3b |tem.msg.|count-1;|
|00001e90| 6c 69 6e 65 20 3d 20 72 | 65 70 6c 61 63 65 28 20 |line = r|eplace( |
|00001ea0| 73 79 73 74 65 6d 2e 6d | 73 67 2e 77 2c 20 61 72 |system.m|sg.w, ar|
|00001eb0| 65 61 2c 20 27 25 41 52 | 45 41 27 20 29 3b 6c 69 |ea, '%AR|EA' );li|
|00001ec0| 6e 65 20 3d 20 72 65 70 | 6c 61 63 65 28 20 6c 69 |ne = rep|lace( li|
|00001ed0| 6e 65 2c 20 72 6d 73 67 | 2e 66 72 6f 6d 2c 20 27 |ne, rmsg|.from, '|
|00001ee0| 25 46 52 4f 4d 27 20 29 | 3b 6c 69 6e 65 20 3d 20 |%FROM' )|;line = |
|00001ef0| 72 65 70 6c 61 63 65 28 | 20 6c 69 6e 65 2c 20 72 |replace(| line, r|
|00001f00| 6d 73 67 2e 66 72 6f 6d | 61 64 64 72 2c 20 27 25 |msg.from|addr, '%|
|00001f10| 46 52 4f 4d 41 44 44 52 | 27 20 29 3b 6c 69 6e 65 |FROMADDR|' );line|
|00001f20| 20 3d 20 72 65 70 6c 61 | 63 65 28 20 6c 69 6e 65 | = repla|ce( line|
|00001f30| 2c 20 72 6d 73 67 2e 74 | 6f 2c 20 27 25 54 4f 27 |, rmsg.t|o, '%TO'|
|00001f40| 20 29 3b 6c 69 6e 65 20 | 3d 20 72 65 70 6c 61 63 | );line |= replac|
|00001f50| 65 28 20 6c 69 6e 65 2c | 20 72 6d 73 67 2e 74 6f |e( line,| rmsg.to|
|00001f60| 61 64 64 72 2c 20 27 25 | 54 4f 41 44 44 52 27 20 |addr, '%|TOADDR' |
|00001f70| 29 3b 6c 69 6e 65 20 3d | 20 72 65 70 6c 61 63 65 |);line =| replace|
|00001f80| 28 20 6c 69 6e 65 2c 20 | 72 6d 73 67 2e 73 75 62 |( line, |rmsg.sub|
|00001f90| 6a 2c 20 27 25 53 55 42 | 4a 45 43 54 27 20 29 3b |j, '%SUB|JECT' );|
|00001fa0| 6c 69 6e 65 20 3d 20 72 | 65 70 6c 61 63 65 28 20 |line = r|eplace( |
|00001fb0| 6c 69 6e 65 2c 20 72 6d | 73 67 2e 64 61 74 65 2c |line, rm|sg.date,|
|00001fc0| 20 27 25 44 41 54 45 27 | 20 29 3b 6c 69 6e 65 20 | '%DATE'| );line |
|00001fd0| 3d 20 72 65 70 6c 61 63 | 65 28 20 6c 69 6e 65 2c |= replac|e( line,|
|00001fe0| 20 44 61 74 65 28 29 2c | 20 27 25 43 55 52 52 45 | Date(),| '%CURRE|
|00001ff0| 4e 54 44 41 54 45 27 20 | 29 3b 6c 69 6e 65 20 3d |NTDATE' |);line =|
|00002000| 20 72 65 70 6c 61 63 65 | 28 20 6c 69 6e 65 2c 20 | replace|( line, |
|00002010| 54 69 6d 65 28 29 2c 20 | 27 25 43 55 52 52 45 4e |Time(), |'%CURREN|
|00002020| 54 54 49 4d 45 27 20 29 | 3b 77 72 69 74 65 6c 6e |TTIME' )|;writeln|
|00002030| 28 27 66 68 27 2c 20 6c | 69 6e 65 29 3b 65 6e 64 |('fh', l|ine);end|
|00002040| 3b 63 61 6c 6c 20 43 6c | 6f 73 65 28 27 66 68 27 |;call Cl|ose('fh'|
|00002050| 29 3b 64 72 6f 70 20 77 | 6d 73 67 2e 3b 4d 4d 5f |);drop w|msg.;MM_|
|00002060| 47 65 74 53 79 73 6f 70 | 20 73 79 73 6f 70 3b 4d |GetSysop| sysop;M|
|00002070| 4d 5f 47 65 74 41 72 65 | 61 49 6e 66 6f 20 72 65 |M_GetAre|aInfo re|
|00002080| 70 6c 79 61 72 65 61 20 | 61 72 65 61 69 6e 66 6f |plyarea |areainfo|
|00002090| 3b 77 6d 73 67 2e 66 72 | 6f 6d 20 3d 20 73 79 73 |;wmsg.fr|om = sys|
|000020a0| 6f 70 3b 77 6d 73 67 2e | 66 72 6f 6d 61 64 64 72 |op;wmsg.|fromaddr|
|000020b0| 20 3d 20 61 72 65 61 69 | 6e 66 6f 2e 61 64 64 72 | = areai|nfo.addr|
|000020c0| 3b 69 66 20 72 65 70 6c | 79 74 6f 6e 61 6d 65 20 |;if repl|ytoname |
|000020d0| 7e 3d 20 27 52 45 50 4c | 59 54 4f 4e 41 4d 45 27 |~= 'REPL|YTONAME'|
|000020e0| 20 74 68 65 6e 20 66 72 | 6f 6d 6e 20 3d 20 72 65 | then fr|omn = re|
|000020f0| 70 6c 79 74 6f 6e 61 6d | 65 3b 65 6c 73 65 3b 66 |plytonam|e;else;f|
|00002100| 72 6f 6d 6e 20 3d 20 72 | 6d 73 67 2e 66 72 6f 6d |romn = r|msg.from|
|00002110| 3b 69 66 20 72 65 70 6c | 79 74 6f 61 64 64 72 20 |;if repl|ytoaddr |
|00002120| 7e 3d 20 27 52 45 50 4c | 59 54 4f 41 44 44 52 27 |~= 'REPL|YTOADDR'|
|00002130| 20 74 68 65 6e 20 66 72 | 6f 6d 61 20 3d 20 72 65 | then fr|oma = re|
|00002140| 70 6c 79 74 6f 61 64 64 | 72 3b 65 6c 73 65 3b 66 |plytoadd|r;else;f|
|00002150| 72 6f 6d 61 20 3d 20 72 | 6d 73 67 2e 66 72 6f 6d |roma = r|msg.from|
|00002160| 61 64 64 72 3b 77 6d 73 | 67 2e 74 6f 20 3d 20 66 |addr;wms|g.to = f|
|00002170| 72 6f 6d 6e 3b 77 6d 73 | 67 2e 74 6f 61 64 64 72 |romn;wms|g.toaddr|
|00002180| 20 3d 20 66 72 6f 6d 61 | 3b 77 6d 73 67 2e 73 75 | = froma|;wmsg.su|
|00002190| 62 6a 20 3d 20 72 6d 73 | 67 2e 73 75 62 6a 3b 69 |bj = rms|g.subj;i|
|000021a0| 66 20 61 72 65 61 69 6e | 66 6f 2e 74 79 70 65 20 |f areain|fo.type |
|000021b0| 3d 20 27 4d 41 49 4c 27 | 20 74 68 65 6e 20 77 6d |= 'MAIL'| then wm|
|000021c0| 73 67 2e 66 6c 61 67 73 | 20 3d 20 27 50 56 54 27 |sg.flags| = 'PVT'|
|000021d0| 3b 65 6c 73 65 3b 77 6d | 73 67 2e 66 6c 61 67 73 |;else;wm|sg.flags|
|000021e0| 20 3d 20 27 27 3b 77 6d | 73 67 2e 66 69 6c 65 20 | = '';wm|sg.file |
|000021f0| 3d 20 73 79 73 74 65 6d | 2e 74 6d 70 66 69 6c 65 |= system|.tmpfile|
|00002200| 3b 77 6d 73 67 2e 74 65 | 61 72 20 3d 20 73 79 73 |;wmsg.te|ar = sys|
|00002210| 74 65 6d 2e 70 72 67 2e | 69 64 3b 4d 4d 5f 57 72 |tem.prg.|id;MM_Wr|
|00002220| 69 74 65 4d 73 67 20 72 | 65 70 6c 79 61 72 65 61 |iteMsg r|eplyarea|
|00002230| 20 77 6d 73 67 3b 69 66 | 20 73 79 73 74 65 6d 2e | wmsg;if| system.|
|00002240| 6c 6f 67 66 69 6c 65 20 | 7e 3d 20 27 53 59 53 54 |logfile |~= 'SYST|
|00002250| 45 4d 2e 4c 4f 47 46 49 | 4c 45 27 20 74 68 65 6e |EM.LOGFI|LE' then|
|00002260| 20 64 6f 3b 6f 20 3d 20 | 30 0a 69 66 20 65 78 69 | do;o = |0.if exi|
|00002270| 73 74 73 28 20 73 79 73 | 74 65 6d 2e 6c 6f 67 66 |sts( sys|tem.logf|
|00002280| 69 6c 65 20 29 20 3d 20 | 30 20 74 68 65 6e 20 64 |ile ) = |0 then d|
|00002290| 6f 3b 63 61 6c 6c 20 4f | 70 65 6e 28 27 6d 27 2c |o;call O|pen('m',|
|000022a0| 20 73 79 73 74 65 6d 2e | 6c 6f 67 66 69 6c 65 2c | system.|logfile,|
|000022b0| 20 27 57 27 29 3b 6f 20 | 3d 20 31 3b 65 6e 64 3b | 'W');o |= 1;end;|
|000022c0| 65 6c 73 65 20 64 6f 3b | 63 61 6c 6c 20 4f 70 65 |else do;|call Ope|
|000022d0| 6e 28 27 6d 27 2c 20 73 | 79 73 74 65 6d 2e 6c 6f |n('m', s|ystem.lo|
|000022e0| 67 66 69 6c 65 2c 20 27 | 41 27 29 3b 6f 20 3d 20 |gfile, '|A');o = |
|000022f0| 31 3b 65 6e 64 3b 69 66 | 20 6f 20 74 68 65 6e 20 |1;end;if| o then |
|00002300| 64 6f 3b 77 72 69 74 65 | 6c 6e 28 27 6d 27 2c 20 |do;write|ln('m', |
|00002310| 27 27 29 3b 77 72 69 74 | 65 6c 6e 28 27 6d 27 2c |'');writ|eln('m',|
|00002320| 20 27 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | '------|--------|
|00002330| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002340| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002350| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002360| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 27 29 3b 77 |--------|----');w|
|00002370| 72 69 74 65 6c 6e 28 27 | 6d 27 2c 20 27 41 72 65 |riteln('|m', 'Are|
|00002380| 61 3a 20 27 61 72 65 61 | 27 20 20 20 44 61 74 65 |a: 'area|' Date|
|00002390| 64 3a 20 27 72 6d 73 67 | 2e 64 61 74 65 29 3b 77 |d: 'rmsg|.date);w|
|000023a0| 72 69 74 65 6c 6e 28 27 | 6d 27 2c 20 27 46 72 6f |riteln('|m', 'Fro|
|000023b0| 6d 3a 20 27 72 6d 73 67 | 2e 66 72 6f 6d 27 20 20 |m: 'rmsg|.from' |
|000023c0| 20 3c 27 72 6d 73 67 2e | 66 72 6f 6d 61 64 64 72 | <'rmsg.|fromaddr|
|000023d0| 27 3e 27 29 3b 77 72 69 | 74 65 6c 6e 28 27 6d 27 |'>');wri|teln('m'|
|000023e0| 2c 20 27 54 6f 20 20 3a | 20 27 72 6d 73 67 2e 74 |, 'To :| 'rmsg.t|
|000023f0| 6f 27 20 20 20 3c 27 72 | 6d 73 67 2e 74 6f 61 64 |o' <'r|msg.toad|
|00002400| 64 72 27 3e 27 29 3b 77 | 72 69 74 65 6c 6e 28 27 |dr'>');w|riteln('|
|00002410| 6d 27 2c 20 27 53 75 62 | 6a 65 63 74 3a 20 27 72 |m', 'Sub|ject: 'r|
|00002420| 6d 73 67 2e 73 75 62 6a | 27 20 20 20 46 6c 61 67 |msg.subj|' Flag|
|00002430| 73 3a 20 27 72 6d 73 67 | 2e 66 6c 61 67 73 29 3b |s: 'rmsg|.flags);|
|00002440| 77 72 69 74 65 6c 6e 28 | 27 6d 27 2c 20 27 41 72 |writeln(|'m', 'Ar|
|00002450| 72 69 76 65 64 3a 20 27 | 54 69 6d 65 28 29 27 20 |rived: '|Time()' |
|00002460| 27 44 61 74 65 28 29 29 | 3b 77 72 69 74 65 6c 6e |'Date())|;writeln|
|00002470| 28 27 6d 27 2c 20 27 2d | 2d 2d 2d 2d 2d 2d 2d 2d |('m', '-|--------|
|00002480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002490| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000024a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000024b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000024c0| 2d 27 29 3b 64 6f 20 74 | 20 3d 20 30 20 74 6f 20 |-');do t| = 0 to |
|000024d0| 72 6d 73 67 2e 68 65 61 | 64 2e 63 6f 75 6e 74 2d |rmsg.hea|d.count-|
|000024e0| 31 3b 77 72 69 74 65 6c | 6e 28 27 6d 27 2c 20 72 |1;writel|n('m', r|
|000024f0| 6d 73 67 2e 68 65 61 64 | 2e 74 29 3b 65 6e 64 3b |msg.head|.t);end;|
|00002500| 64 6f 20 74 20 3d 20 30 | 20 74 6f 20 72 6d 73 67 |do t = 0| to rmsg|
|00002510| 2e 74 65 78 74 2e 63 6f | 75 6e 74 2d 31 3b 77 72 |.text.co|unt-1;wr|
|00002520| 69 74 65 6c 6e 28 27 6d | 27 2c 20 72 6d 73 67 2e |iteln('m|', rmsg.|
|00002530| 74 65 78 74 2e 74 29 3b | 65 6e 64 3b 64 6f 20 74 |text.t);|end;do t|
|00002540| 20 3d 20 30 20 74 6f 20 | 72 6d 73 67 2e 66 6f 6f | = 0 to |rmsg.foo|
|00002550| 74 2e 63 6f 75 6e 74 2d | 31 3b 77 72 69 74 65 6c |t.count-|1;writel|
|00002560| 6e 28 27 6d 27 2c 20 72 | 6d 73 67 2e 66 6f 6f 74 |n('m', r|msg.foot|
|00002570| 2e 74 29 3b 65 6e 64 3b | 43 61 6c 6c 20 43 6c 6f |.t);end;|Call Clo|
|00002580| 73 65 28 20 27 6d 27 20 | 29 3b 65 6e 64 3b 65 6e |se( 'm' |);end;en|
|00002590| 64 3b 65 6e 64 3b 65 6e | 64 3b 72 65 74 75 72 6e |d;end;en|d;return|
|000025a0| 0a 2f 2a 20 4f 72 69 67 | 69 6e 61 6c 20 73 63 72 |./* Orig|inal scr|
|000025b0| 69 70 74 3a 20 35 31 38 | 20 6c 69 6e 65 73 2c 20 |ipt: 518| lines, |
|000025c0| 31 30 36 30 38 20 62 79 | 74 65 73 2c 20 63 6d 70 |10608 by|tes, cmp|
|000025d0| 72 61 74 65 20 31 35 2e | 34 25 20 2a 2f 0a 00 00 |rate 15.|4% */...|
|000025e0| 00 00 03 f2 | |.... | |
+--------+-------------------------+-------------------------+--------+--------+